import os

from celery import Celery

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "meiduo_mall.settings.dev")
# celery应用
celery = Celery('meiduo', broker='redis://127.0.0.1:6379/15', backend='redis://127.0.0.1:6379/14')

# 指定扫描
celery.autodiscover_tasks(['celery_tasks.sms', 'celery_tasks.email'])




